Skip to content

feat(cli): skip self-update when already on latest version#1130

Merged
christso merged 1 commit intomainfrom
feat/1129-skip-update-if-current
Apr 16, 2026
Merged

feat(cli): skip self-update when already on latest version#1130
christso merged 1 commit intomainfrom
feat/1129-skip-update-if-current

Conversation

@christso
Copy link
Copy Markdown
Collaborator

@christso christso commented Apr 16, 2026

Summary

  • Checks npm registry before running install in agentv self update
  • If already on latest, prints "Already up to date (x.y.z)." and exits
  • If registry is unreachable, falls through to normal update (best-effort)
  • Shows available version before installing

Test plan

  • agentv self update when already on latest: prints "Already up to date" and skips install
  • agentv self update when registry unreachable: falls through to install attempt (code review — timeout/error returns null, proceeds to install)
  • Version-check auto-update path unaffected
  • All existing tests pass (2,230 tests)

E2E evidence

Already on latest — skips install

$ agentv self update
Current version: 4.20.0
Checking for updates...
Already up to date (4.20.0).

Version-check path unaffected

Warning: This project requires agentv >=99.0.0 but you have 4.20.0.
  Run `agentv self update` to upgrade.
Artifact directory: ...  ← eval continues

Closes #1129

🤖 Generated with Claude Code

Check npm registry before running install. If the current version
matches the latest published version, print "Already up to date"
and exit without running npm/bun install.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6b84ae4
Status: ✅  Deploy successful!
Preview URL: https://99527d9b.agentv.pages.dev
Branch Preview URL: https://feat-1129-skip-update-if-cur.agentv.pages.dev

View logs

@christso christso marked this pull request as ready for review April 16, 2026 08:09
@christso christso merged commit df5c338 into main Apr 16, 2026
4 checks passed
@christso christso deleted the feat/1129-skip-update-if-current branch April 16, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): skip self-update when already on latest version

1 participant